<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="https://xcximg.juseyun.com/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="https://xcximg.juseyun.com/assets/css/style.css" />
    <link href="https://xcximg.juseyun.com/assets/css/codemirror.css" rel="stylesheet">
    <link rel="stylesheet" href="https://xcximg.juseyun.com/assets/css/ace.min.css" />
    <link rel="stylesheet" href="https://xcximg.juseyun.com/assets/font/css/font-awesome.min.css" />
    <script src="https://xcximg.juseyun.com/assets/js/jquery-1.9.1.min.js"></script>
    <script src="https://xcximg.juseyun.com/assets/js/bootstrap.min.js"></script>
    <script src="https://xcximg.juseyun.com/assets/js/typeahead-bs2.min.js"></script>
    <script src="https://xcximg.juseyun.com/assets/js/lrtk.js" type="text/javascript"></script>
    <script src="https://xcximg.juseyun.com/assets/js/jquery.dataTables.min.js"></script>
    <script src="https://xcximg.juseyun.com/assets/js/jquery.dataTables.bootstrap.js"></script>
    <script src="https://xcximg.juseyun.com/assets/layer/layer.js" type="text/javascript"></script>
    <script src="https://xcximg.juseyun.com/assets/laydate/laydate.js" type="text/javascript"></script>
    <script src="https://xcximg.juseyun.com/assets/js/H-ui.js" type="text/javascript"></script>
    <script src="https://xcximg.juseyun.com/assets/js/displayPart.js" type="text/javascript"></script>
    <title>审核列表</title>
</head>
<style>
    .Ads_list{margin: 0 auto; text-align: center;width: 100% !important;}
</style>
<body>
<div class="clearfix">
    <div class="article_style" id="article_style">

        <!--文章列表-->
        <div class="Ads_list">
            <div class="search_style">

                <ul class="search_content clearfix">
                    <li><label class="l_f">类型</label>
                        <select name="" style=" width:150px">
                            <option>--医生类型--</option>
                        </select>
                    </li>
                    <li><label class="l_f">医院</label><input name="" type="text" class="text_add" placeholder="医院名称" style=" width:200px"></li>
                    <li><label class="l_f">添加时间</label><input class="inline laydate-icon" id="start" style=" margin-left:10px;"></li>
                    <li style="width:90px;"><button type="button" class="btn_search"><i class="fa fa-search"></i>查询</button></li>
                </ul>
            </div>
            <div class="border clearfix"><span class="l_f"><a href="javascript:ovid()" class="btn btn-danger"><i class="fa fa-trash"></i> 批量删除</a></span>
                <span class="r_f">共：<b><%=data.length%></b>位医生通过审核</span>
            </div>
            <div class="article_list">
                <table class="table table-striped table-bordered table-hover" id="sample-table">
                    <thead>
                    <tr>
                        <th width="25"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
                        <th width="80px">排序</th>
                        <th width="180">医生姓名</th>
                        <th width="120px">分类</th>
                        <th width="120px">简介</th>
                        <th width="150px">添加时间</th>
                        <th width="100px">审核状态</th>
                        <th width="100px">审核人</th>
                        <th width="150px">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <%for(var i=0;i<data.length;i++){%>
                    <tr data-id="<%=data[i]._id%>">
                        <td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
                        <td><%=i+1%></td>
                        <td><%=data[i].name%></td>
                        <td><%=data[i].department%></td>
                        <td ><%=data[i].profile%></td>
                        <td><%=data[i].time%></td>
                        <td><%=(data[i].raudit)==true?"已通过":"不通过"%></td>
                        <td>admin</td>
                        <td class="td-manage">
                            <a title="删除" href="javascript:;" onclick="member_del(this,'1')" class="btn btn-xs btn-danger"><i class="fa fa-trash  bigger-120"></i></a>
                        </td>
                    </tr>
                    <%}%>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</body>

</html>
<script>
    $(function() {
        $(".displayPart").displayPart();
    });
    laydate({
        elem: '#start',
        event: 'focus'
    });
    //面包屑返回值
    var index = parent.layer.getFrameIndex(window.name);
    parent.layer.iframeAuto(index);
    $('#add_page').on('click', function() {
        var cname = $(this).attr("title");
        var chref = $(this).attr("href");
        var cnames = parent.$('.Current_page').html();
        var herf = parent.$("#iframe").attr("src");
        parent.$('#parentIframe').html(cname);
        parent.$('#iframe').attr("src", chref).ready();;
        parent.$('#parentIframe').css("display", "inline-block");
        parent.$('.Current_page').attr({
            "name": herf,
            "href": "javascript:void(0)"
        }).css({
            "color": "#4c8fbd",
            "cursor": "pointer"
        });
        //parent.$('.Current_page').html("<a href='javascript:void(0)' name="+herf+" class='iframeurl'>" + cnames + "</a>");
        parent.layer.close(index);

    });
    $(function() {
        var oTable1 = $('#sample-table').dataTable({
            "aaSorting": [
                [1, "desc"]
            ], //默认第几个排序
            "bStateSave": true, //状态保存
            "aoColumnDefs": [
                //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
                {
                    "orderable": false,
                    "aTargets": [0, 2, 3, 4, 5, 7, 8]
                } // 制定列不参与排序
            ]
        });
        $('table th input:checkbox').on('click', function() {
            var that = this;
            $(this).closest('table').find('tr > td:first-child input:checkbox')
                    .each(function() {
                        this.checked = that.checked;
                        $(this).closest('tr').toggleClass('selected');
                    });

        });
    })

    $(function() {
        $("#article_style").fix({
            float: 'left',
            //minStatue : true,
            skin: 'green',
            durationTime: false,
            stylewidth: '220',
            spacingw: 30, //设置隐藏时的距离
            spacingh: 250, //设置显示时间距
            set_scrollsidebar: '.Ads_style',
            table_menu: '.Ads_list'
        });
    });
    //初始化宽度、高度
    $(".widget-box").height($(window).height());
    $(".Ads_list").width($(window).width() - 220);
    //当文档窗口发生改变时 触发
    $(window).resize(function() {
        $(".widget-box").height($(window).height());
        $(".Ads_list").width($(window).width() - 220);
    });

    /*文章-删除*/
    function member_del(obj, id) {
        layer.confirm('确认要删除吗？', {
            icon: 0,
        }, function(index) {
            $(obj).parents("tr").remove();
            layer.msg('已删除!', {
                icon: 1,
                time: 1000
            });
        });
    }
</script>